package com.example.demo.dao;

import com.example.demo.pojo.Staff;
import com.example.demo.pojo.Workorder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface workorderMapper {
    public List<Workorder> selectAll();
    public Workorder selectById(int order_id);
    public List<Workorder> selectBybusId(int id);
    public void addWorkorder(Workorder workorder);
    public void updateWorkorder(Workorder workorder);
    public void deleteWorkorder(int id);
    public int order_num();
    public List<Workorder> get_staffmoney();
    public void update_performance(int staff_id, int money);
    public void reset_performance(int staff_id);
}
